package com.libinshen.wxpay.common.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 父类实体类，每张表都有 id,createTime，updateTime三个字段
 */
@Data
public class BaseEntity {

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @ApiModelProperty("创建时间")
    @ExcelProperty(value = "创建时间", index = 10)
    private String createTime;

    @ApiModelProperty("更新时间")
    @ExcelProperty("更新时间")
    private String updateTime;
}
